package org.mybatis.generator.api;

import org.mybatis.generator.api.dom.xml.TextElement;

/**
 * cjianquan 2019/8/4
 */
public class GeneratedVueFile extends GeneratedFile{
    private TextElement textElement;

    private String fileName;

    private String targetPackage;

    private boolean isMergeable;

    public GeneratedVueFile(TextElement textElement, String fileName,
                                   String targetPackage, String targetProject, boolean isMergeable) {
        super(targetProject);
        this.textElement = textElement;
        this.fileName = fileName;
        this.targetPackage = targetPackage;
        this.isMergeable = isMergeable;
    }

    @Override
    public String getFormattedContent() {
        return textElement.getFormattedContent(0);
    }

    /**
     * @return Returns the fileName.
     */
    @Override
    public String getFileName() {
        return fileName;
    }

    /**
     * @return Returns the targetPackage.
     */
    @Override
    public String getTargetPackage() {
        return targetPackage;
    }

    @Override
    public boolean isMergeable() {
        return isMergeable;
    }
}
